package cn.jizi.mapper;

import cn.jizi.entity.SysMenu;
import cn.jizi.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 宋朝阳
 * @create 2020 -11 -28 15:13
 */
@Mapper
public interface MenuMapper extends BaseMapper<SysMenu> {

    //用户登录
    SysUser loginname(@Param("loginname") String loginname);

    //根据用户ID查询菜单
    List<SysMenu> queryMenuByUid(Integer userid);

    //加载左侧导航，查询所有可用菜单
    List<SysMenu> loadAvailableMenu();



}
